ServerEvents.entityLootTables(event=>{
    event.modifyEntity('mobz:boss_skeleton',loot=>{
        loot.addPool(pool=>{
            pool.addItem('kubejs:lust')
        })
    })
event.modifyEntity('mobz:boss_zombie',loot=>{
    loot.addPool(pool=>{
        pool.addItem('kubejs:wrath').killedByPlayer()
})
})
event.modifyEntity('mobz:charles',loot=>{
    loot.addPool(pool=>{
        pool.addItem('kubejs:greed').randomChance(1).killedByPlayer()
        pool.addItem('goety:front_scroll').randomChance(1)
})
})
event.modifyEntity('mobz:bigboss',loot=>{
    loot.addPool(pool=>{
        pool.addItem('kubejs:gluttony').killedByPlayer()
})
})
event.modifyEntity('mobz:pillager_boss',loot=>{
    loot.addPool(pool=>{
        pool.addItem('kubejs:envy').randomChance(1).killedByPlayer()
        pool.randomChance(1);
        })
loot.addPool(pool=>{
        pool.addItem('8x goety:forbidden_piece').randomChance(1)
        pool.addItem('goety:warred_scroll').randomChance(1)
        }) 

});
event.modifyEntity('mobz:lord_of_darkness',loot=>{
    loot.addPool(pool=>{
        pool.addItem('kubejs:sloth').killedByPlayer()
})
});
event.modifyEntity('mobz:withender',loot=>{
    loot.addPool(pool=>{
        pool.addItem('kubejs:pride').killedByPlayer()
})
});
event.modifyEntity('minecraft:warden',loot=>{
    loot.addPool(pool=>{
        pool.addItem('2x minecraft:echo_shard').randomChanceWithLooting(0.75,0.25)
        pool.addItem('2x minecraft:echo_shard').randomChanceWithLooting(0.5,0.25)
        pool.randomChance(2);
    }) 
        loot.addPool(pool=>{
        pool.addItem('6x goety:forbidden_piece').randomChance(1).killedByPlayer()
        pool.addItem('4x goety:forbidden_piece').randomChanceWithLooting(0.3,0.15)
        pool.randomChance(1);
})  
});
event.modify('minecraft:ravager',loot =>{
    loot.addPool(pool=>{
        pool.addItem('goety:ravaging_scroll').randomChanceWithLooting(0.1,0.1)
})
});
event.modify('goety:brood_mother_servant',loot =>{
    loot.addPool(pool=>{
        pool.addItem('goety:floral_scroll').randomChance(1)
})
});
event.modify('goety:skull_lord',loot =>{
    loot.addPool(pool=>{
        pool.addItem('goety:haunting_scroll').randomChance(1)
        
        pool.randomChance(1);
    })
    loot.addPool(pool=>{
        pool.addItem('goety:buried_scroll').randomChance(1)
        pool.randomChance(1);
    })
});
event.modify('minecraft:elder_guardian',loot =>{
    loot.addPool(pool=>{
        pool.addItem('2x minecraft:heart_of_the_sea').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
    loot.addPool(pool=>{
        pool.addItem('3x minecraft:nautilus_shell').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:panther',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:cougar',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:dolphin',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:penguin',loot =>{
    loot.addPool(pool=>{
        pool.addItem('3x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:orca',loot =>{
    loot.addPool(pool=>{
        pool.addItem('30x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:manatee',loot =>{
    loot.addPool(pool=>{
        pool.addItem('30x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:grizzly_bear',loot =>{
    loot.addPool(pool=>{
        pool.addItem('30x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:polar_bear',loot =>{
    loot.addPool(pool=>{
        pool.addItem('30x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:black_bear',loot =>{
    loot.addPool(pool=>{
        pool.addItem('30x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:dire_wolf',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:hyena',loot =>{
    loot.addPool(pool=>{
        pool.addItem('7x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:wolf',loot =>{
    loot.addPool(pool=>{
        pool.addItem('7x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:crocodile',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:tiger',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:sabertooth',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:pig',loot =>{
    loot.addPool(pool=>{
        pool.addItem('7x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:lion',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:chicken',loot =>{
    loot.addPool(pool=>{
        pool.addItem('3x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:duck',loot =>{
    loot.addPool(pool=>{
        pool.addItem('3x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:quail',loot =>{
    loot.addPool(pool=>{
        pool.addItem('3x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:rabbit',loot =>{
    loot.addPool(pool=>{
        pool.addItem('3x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:musk_ox',loot =>{
    loot.addPool(pool=>{
        pool.addItem('30x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:sheep',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:alpaca',loot =>{
    loot.addPool(pool=>{
        pool.addItem('x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:yak',loot =>{
    loot.addPool(pool=>{
        pool.addItem('30x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:bongo',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:caribou',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:deer',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:turkey',loot =>{
    loot.addPool(pool=>{
        pool.addItem('5x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:pheasant',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:gazelle',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:goat',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:grouse',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:ocelot',loot =>{
    loot.addPool(pool=>{
        pool.addItem('8x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:fox',loot =>{
    loot.addPool(pool=>{
        pool.addItem('8x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:rat',loot =>{
    loot.addPool(pool=>{
        pool.addItem('2x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:wildebeest',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:horse',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:moose',loot =>{
    loot.addPool(pool=>{
        pool.addItem('30x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:cat',loot =>{
    loot.addPool(pool=>{
        pool.addItem('3x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:dog',loot =>{
    loot.addPool(pool=>{
        pool.addItem('4x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:mule',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:boar',loot =>{
    loot.addPool(pool=>{
        pool.addItem('10x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:peafowl',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:donkey',loot =>{
    loot.addPool(pool=>{
        pool.addItem('17x kubejs:condensed_blood').randomChance(1).killedByPlayer()
        pool.randomChance(1);
    })
});
event.modify('tfc:black_bear',loot =>{
    loot.addPool(pool=>{
        pool.addItem('mobz:bear_leather').randomChance(1)
        pool.randomChance(1);
    })
});
event.modify('tfc:grizzly_bear',loot =>{
    loot.addPool(pool=>{
        pool.addItem('mobz:bear_leather').randomChance(1)
        pool.randomChance(1);
    })
});
event.modify('tfc:black_bear',loot =>{
    loot.addPool(pool=>{
        pool.addItem('mobz:bear_leather').randomChance(1)
        pool.randomChance(1);
    })
});
event.modify('tfc:polar_bear',loot =>{
    loot.addPool(pool=>{
        pool.addItem('mobz:bear_leather').randomChance(1)
        pool.randomChance(1);
    })
});
})
ServerEvents.blockLootTables(event => {
    event.addBlock('kubejs:pyrolusite',table =>{
        table.addPool(pool => {
            pool.rolls = 1;
            pool.addItem('kubejs:raw_pyrolusite');
            pool.addCondition({
                condition:'minecraft:inverted',
                term:{
                    condition: 'minecraft:match_tool',
                    predicate: {
                        enchantments: [{ 
                            enchantment: 'minecraft:silk_touch', 
                            levels: { min: 1 } 
                        }],
                    }
                }
            });
        })

        table.addPool(pool => {
            pool.rolls = 1;
            pool.addItem('kubejs:pyrolusite');
            pool.addCondition({
                condition: 'minecraft:match_tool',
                predicate: {
                    enchantments: [{ 
                        enchantment: 'minecraft:silk_touch', 
                        levels: { min: 1 } 
                    }]
                }
            });
        });
    })    
});
// ServerEvents.fishingLootTables(event =>{
//     event.addJson(
//         {"type":"minecraft:fishing",
//         "pools":[
//             {"name":"loot_pool","rolls":1,"entries":[{"type":"minecraft:alternatives",
//             "children":[{"type":"minecraft:item","name":"tfc:ore/small_cassiterite",
//             "conditions":[
//                 {"condition":"minecraft:random_chance","chance":0.5}]},
//         {"type":"minecraft:item","name":"tfc:rock/loose/dacite",
//             "conditions":[{"condition":"minecraft:random_chance","chance":0.5}]},{"type":"minecraft:item","name":"tfc:groundcover/pumice",
//             "conditions":[{"condition":"minecraft:random_chance","chance":0.25}]},{"type":"minecraft:item","name":"tfc:ore/pyrite",
//             "conditions":[{"condition":"minecraft:random_chance","chance":0.0533}]}]}]}]}
    
// )})